home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
FILER
/
SMART.ZIP
/
Tips
Wrap
Text File
|
1998-03-04
|
2KB
|
43 lines
Read the application's Help file first, then read this if you need more help
to figure out how to create a patterns file. You'll find it helpful to refer
to the Help file's tables of values alongside this text.
Here are some examples, mainly from my own Patterns file.
ADFS::Nisu.$ 31
My root directory is quite crowded, almost entirely with plain
directories, so I like it to open with small icons. This means I have to
affect the icon options only: mask = 3, value = 1.
*.h 31
*.c 31
Similar options for C source directories, any path ending in a directory
called c or h (I have several more lines like this for different types
of source).
*.WordProc.Letters CC
For letters you're likely to want to sort them by date. The sort options
are a little more complicated. C for the mask is easy to work out from
the above table, but for the value we want to write 3 into bits 2-3, so
shifting 3 left by 2 bits works out as C (the number in brackets).
*.!NewsDir.newsbase.debug%.* FD
A certain set of directories used by Newsbase (the debug% can expand to
debugmail or debugnews in this case) contain lots of files where the
time/date is much more important than the name, so I have these sorted
by date and displayed as small icons. The mask to affect both types of
option is F, and we need to boolean OR (or add) the sort by date value
(C) with the small icons value (1), giving D.
* 1180031
I have this at the bottom of my Patterns file to catch anything that
doesn't match any of the previous patterns in the file. It's the new
extended option. The first digit 1 means use one set of options if there
are fewer or equal than a certain number of files in the directory, and
another if there are more than this number. That number is read from the
next two digits in hexadecimal, in this case &18 = 24. The next two
digits are the options to use for a low number of files, in this case 00
means no change from the machine's configured options. The last two
digits are the options to use for a large number of files, in this case
31: use small icons.